package com.yanyingkun.service;


import com.yanyingkun.model.Restaurant;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class RestaurantService {

    private final List<Restaurant> restaurants = new ArrayList<>();

    public RestaurantService() {
        restaurants.add(new Restaurant("惊喜餐厅", "市中心", "特色美食"));
        restaurants.add(new Restaurant("第一食堂", "安师大", "特色美食"));
        restaurants.add(new Restaurant("第二食堂", "安师大", "特色美食"));
        restaurants.add(new Restaurant("第三食堂", "安师大", "特色美食"));
    }

    public List<Restaurant> getAllRestaurants() {
        return restaurants;
    }
}
